package com.s06.e02.model;

public class User {

	private String name;
	private String surname;
	private String dob;
	private String gender;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name.toUpperCase();
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname.toLowerCase();
	}

	public String getDob() {
		return dob;
	}

	public void setDob(String dob) {
		this.dob = dob.replaceAll("-", ".");
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String toString() {
		return "User [name=" + name + ", surname=" + surname + ", dob=" + dob
				+ ", gender=" + gender + "]";
	}

}
